home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Prograph Classic 2.6.1 / Prograph Reference Manual / Prograph Reference 1-4 / Prograph Reference 1-4.rsrc / TEXT_154.txt < prev    next >
Encoding:
Text File  |  1995-10-21  |  4.3 KB  |  110 lines

  1.  
  2. t    Window Editors*136*
  3.  
  4. As mentioned above, there are two Window editors, the WYSIWYG Window editor and the Window Specification editor.
  5.  
  6. WYSIWYG Window Editor*136*
  7.  
  8. This editor is invoked by:
  9.  
  10. o    selecting Enter Editor from the Apple menu when an application window is frontmost; 
  11.  
  12. o    selecting Enter Editor from the Apple menu when the attributes window of a ¬´Window¬ª, or a Value window displaying a ¬´Window¬ª is frontmost; 
  13.  
  14. o    clicking the Graphic check box on a Value window displaying a ¬´Window¬ª;
  15.  
  16. o    clicking the Edit button in the Application editor after selecting a ¬´Window¬ª element from the List of Instances;*136*
  17.  
  18. o    double-clicking a ¬´Window¬ª element in List of Instances in the Application editor. 
  19.  
  20. The WYSIWYG Window editor presents a pictorial representation (referred to as the ‚Äúwindow image‚Äù) of the ¬´Window¬ª, similar to the image on the screen of the ¬´Window¬ª when it is active. For example, when invoked on a ¬´Window¬ª with the supplied default attribute values of class Window, a blank window appears with a close box, a grow box, and a title bar displaying Untitled.*136*
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. The window image displays the ‚ÄúWindow Item images‚Äù, if any, corresponding to ¬´Window Item¬ªs in the attribute item list of the ¬´Window¬ª. At most one of these Window Item images is selected.*136*
  36.  
  37. Aside from the menu actions mentioned above, actions that pertain to the WYSIWYG Window editor are as follows:*137*
  38.  
  39. o    A Command-double-click opens the Window Specification editor.
  40.  
  41. o    A Shift-Option-Command-click on an unoccupied part of the window image opens the Value window for the ¬´Window¬ª.
  42.  
  43. o    A Shift-Option-Command-click on a ¬´Window Item¬ª in the window image opens the Value window for that ¬´Window Item¬ª.
  44.  
  45. o    A click-drag in the banner drags the window image.*137* 
  46.  
  47. o    A Command-click-drag within the window drags the window image.
  48.  
  49. o    A click-drag in the grow box (if present) resizes the window image. 
  50.  
  51. o    A Command-click-drag at the bottom right corner resizes the window image.
  52.  
  53. o    A single click on a ¬´Window Item¬ª selects it.*137*
  54.  
  55. o    A single click, double click, or click-drag in an unoccupied space creates an instance of class Window Item, adds it to the end of the item list of ¬´Window¬ª, and adds to the window image a corresponding ¬´Window Item¬ª image, which becomes selected.
  56.  
  57. Repositioning or resizing the window image on the screen sets the values of the attributes location and size of ¬´Window¬ª so that when the ¬´Window¬ª is activated and displayed on the screen it appears at the same location and is the same size as the window image. *137*
  58.  
  59. Window Specification Editor*137*
  60.  
  61. The Window Specification editor is invoked by a Command-double-click on the WYSIWYG Window editor. *137*
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78. Window Title*138*
  79.  
  80. An editable-text field that displays the value of the attribute name of ¬´Window¬ª.
  81.  
  82. Activate Method, Close Method, Idle Method, Key Method*138*
  83.  
  84. Editable-text fields displaying the values of the attributes activate method, close method, idle method and key method of ¬´Window¬ª. 
  85.  
  86. NOTE: The prescribed methods of opening and closing windows is through use of /Open and /Close methods, respectively.  For more information, see the active?, activate method, and close method System Instance attributes of class Window in chapter 5, "System Classes." 
  87.  
  88. Document, Dialog, Plain, Plain w/Shadow*138*
  89.  
  90. The selected radio button indicates the Macintosh procedure to be used in drawing the ¬´Window¬ª, specified by the value of the attribute defID.
  91.  
  92. Close Box*138*
  93.  
  94. Checking this box sets the value of attribute close? of ¬´Window¬ª to TRUE.
  95.  
  96. Zoom Box*138*
  97.  
  98. Checking this box sets the value of attribute defID of ¬´Window¬ª to indicate that the window has a zoom box.
  99.  
  100. Grow Box*139*
  101.  
  102. Checking this box sets the value of attribute defID of ¬´Window¬ª to indicate that the window has a grow box.
  103.  
  104. Modal*139*
  105.  
  106. Checking this box sets the value of attribute modal? of ¬´Window¬ª to TRUE.
  107. The WYSIWYG Window editor is dismissed by choosing Exit Editor from the Apple menu or clicking the close box of the window image, if one exists. Both of these actions confirm the changes made during editing, and they are therefore equivalent to clicking the OK button in a Specification editor window. 
  108. _______________________________________________________
  109. NOTE:  The WYSIWYG Window editor cannot be dismissed in a way that discards changes. *139*
  110.